<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
	</head>
	<body>
		<div id="app">
			<table border="">
				<tr v-for="(stu,i)in stus">
					<td>
						{{stus}}
					</td>
			<ul>
				<li v-for="n in name" v-once>{{n}}</li>
			</ul>
			最新列表：
			<ul>
				<li v-for="n in name">{{n}}</li>
			</ul>
			<input type="text" v-model="name"/>
			id:<input type="text" v-model="id"></br>
			name:<input type="text" v-model="name"></br>
			age:<input type="text" v-model="age"></br>
			<button>添加</button>
		</div>
		
		<script>
			var app = Vue.createApp(
			{
				data() {
					return{
					name:'',
					names:['张三','李四','王五',],
					stus:[
						{
						id:1,
						name:"张三"；
						age:12;
						}
					],{
						id:2,
						name:"李四"；
						age:16;
					},{
						id:3,
						name:"王五"；
						age:18;
					}
					]
				},
				}
				methods:{
					add:function(){
						this.name.push(this.name)
				},
				}
			});
			
			
			
			
			var vm = app.mount("#app")
		</script>
	</body>
</html>
